package com.foreknow.dao;

import com.foreknow.bean.Emp;

import java.sql.SQLException;

/**
 * 接口中要声明对Emp的操作
 */
public interface EmpDAO {
    /**
     * 保存员工信息
     * @param emp
     * @return
     * @throws SQLException
     */
    public boolean save(Emp emp) throws SQLException;

    /**
     * 查询所有员工信息
     * @return
     * @throws SQLException
     */
    public Emp[] getQueryAll() throws SQLException;

    /**
     * 根据id查询员工信息
     * @param empno
     * @return
     * @throws SQLException
     */
    public Emp getQueryById(int empno) throws SQLException;
}
